<?php  
	/**
	 * 发送短信
	 */
	function send($to,$code)
	{
		$res = file_get_contents('http://www.xiaohigh.com/sendMessage/index.php?to='.$to.'&class=666&web=lamp171&code='.$code);

		return $res;
	}

	function getAreaNameById($id)
	{
		if(empty($id)) return '';
		//实例化模型
		$area = \App\Area::where('areaid', $id)->first();

		return $area->areaname;
	}
?>